package com.hyfrogx.modules.information.form;

import com.hyfrogx.modules.information.entity.InfoImgEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * @author liubin
 * @date 2019/11/20 18:02
 */
@Data
@ApiModel(value = "后台新增编辑资讯模型")
public class AddInformationModel {

  private Integer id;

  @ApiModelProperty(value = "模板类型")
  private Integer templateType;

  @ApiModelProperty(value = "内容类型0及时1定时或者资讯分类id")
  private Integer contentType;

  @ApiModelProperty(value = "标题")
  private String title;

  @ApiModelProperty(value = "排序")
  private Double sort;

  @ApiModelProperty(value = "模板类型")
  private String publisher;

  @ApiModelProperty(value = "模板类型")
  private Integer isRecommend;

  @ApiModelProperty(value = "推荐类别下的置顶0否1是")
  private Integer tjTop;

  @ApiModelProperty(value = "模板类型")
  private Integer isTop;

  @ApiModelProperty(value = "模板类型")
  private Integer publishType;

  @ApiModelProperty(value = "模板类型")
  private Integer state;

  @ApiModelProperty(value = "模板类型")
  private String shareDepict;


  @ApiModelProperty(value = "模板类型")
  private String videoUrl;

  @ApiModelProperty(value = "富文本内容")
  private String text;

  @ApiModelProperty(value = "是否广告")
  private Integer isAdvertising;

  @ApiModelProperty(value = "是否图集")
  private Integer isAtlas;

  @ApiModelProperty(value = "多图封装模板")
  @NotBlank(message = "jsonStr不能为空")
  private String jsonStr;

  @ApiModelProperty(value = "分享配图")
  private String shareImg;

  /*@ApiModelProperty(value = "大图")
  private String bigImg;*/

  @ApiModelProperty(value = "模板类型")
  @NotBlank(message = "设备渠道不能为空")
  private Integer[] channelIds;

  @ApiModelProperty(value = "广告链接")
  private String advertisingUrl;

  @ApiModelProperty(value = "发布时间")
  private Date publishTime;

  @ApiModelProperty(value = "资讯审核状态  0-不通过 1-通过  2-待审核")
  private Integer approvalStatus;

  @ApiModelProperty(value = "多图")
  private List<InfoImgEntity> infoImg;
}
